/**
 * Created with IntelliJ IDEA.
 * Description: JavaAPI实验二代码
 */
public class Test2 {
    public static void main(String[] args) {
        StringBuffer stringBuffer1 = new StringBuffer();
        System.out.println("sb1.length: " + stringBuffer1.length());
        System.out.println("sb1.capacity: " + stringBuffer1.capacity());
        StringBuffer stringBuffer2 = new StringBuffer(4);
        System.out.println("sb2.length: " + stringBuffer2.length());
        System.out.println("sb2.capacity: " + stringBuffer2.capacity());
        StringBuffer stringBuffer3 = new StringBuffer("hello");
        System.out.println("sb3.length: " + stringBuffer3.length());
        System.out.println("sb3.capacity: " + stringBuffer3.capacity());
    }
}
